home *** CD-ROM | disk | FTP | other *** search
- Path: news.cstone.net!usenet
- From: scottv@cstone.net (Scott)
- Newsgroups: comp.lang.c++
- Subject: Q: Creating OLE Custom Control Enumerated Property, how?
- Date: 10 Feb 1996 22:58:27 GMT
- Organization: Cornerstone Networks - Pure Internet!
- Message-ID: <4fj7uj$umi@dot.cstone.net>
- NNTP-Posting-Host: dialin8.cstone.net
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.7
-
- I've been creating an OLE custom control in VC++ 4.0 and have run
- into a snag. I want to create a property that has an enumerated value list
- like that of the BorderStyle property. Languages like VB 4.0 show the
- enumerated values in a combo box to select from in design time.
- I've used OnGetDisplayString to override the property as an integer
- to display "1 - Example" in the property list, but I want to enumerate the
- values and override the display. Anyone know how to do this - I would think
- this should be fairly simple, but I've missed it in the documentation or
- misunderstood it.
- Please email me direct if possible; scottv@cstone.net - THANKS!!!
-
- Thanks,
- N. Scott Vann
- Software Developer
-
-